package com.example.demo.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "sys_demo2")
public class User extends Model<User> {

    @ApiModelProperty(value="用户id",name="id",required=true)
    @TableId(value="id")
    private Integer id;

    @ApiModelProperty(value="日志ID",name="syslogId",required=true)
    @TableId(value="syslog_id")
    private Integer syslogId;

    @ApiModelProperty(value="用户名",name="userName",required=true)
    @TableField(value="user_name")
    private String userName;

    @ApiModelProperty(value="添加时间",name="createDate",required=true)
    @TableField(value="create_date")
    private String createDate;

    @Override
    protected Serializable pkVal() {
        return null;
    }
}
